package open_app

import (
	"github.com/gin-gonic/gin"
	"organoid_public/global"
	"organoid_public/middleware"
)

func Setup(g *gin.RouterGroup) {
	_, err := newHandler()
	if err != nil {
		global.Log.Error("module", "app/user", "function", "SetupRbac", "error", err.Error())
		panic(err)
	}
	g = g.Group("openApp")

	g.Use(middleware.NewDiscernAppMiddleware(global.Response).HandleFunc)
	{
	}
}
